package com.payment.ktb.constants;

/**
 * Created by admin on 2017/12/4.
 */

public enum ConstantsCustomer {

    INIT(10, "初始化"),
    WAIT(11, "待审核"),
    FAIL(12, "审核驳回"),
    CONF(19, "初审通过"),
    PASS(20, "审核通过"),
    RISK(30, "系统风控"),
    STOP(99, "停用删除");

    private int code;
    private String name;

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    ConstantsCustomer(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getStatus(int code) {

        for (ConstantsCustomer constantsCustomer:ConstantsCustomer.values()) {
            if (code == constantsCustomer.getCode()) {
                return constantsCustomer.getName();
            }
        }
        return "未知";
    }


}
